package com.hd.trans.ui.model;


import com.hd.trans.db.bean.HuDunLanguage;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class SimultaneousModel extends ViewModel {
    private MutableLiveData<HuDunLanguage> mLanguageFrom; // 源语言
    private MutableLiveData<HuDunLanguage> mLanguageTo; // 目标语言


    public MutableLiveData<HuDunLanguage> getLanguageFrom() {
        if (mLanguageFrom == null) {
            mLanguageFrom = new MutableLiveData<>();
        }
        return mLanguageFrom;
    }

    public void setLanguageFrom(HuDunLanguage item) {
        if (mLanguageFrom == null) {
            mLanguageFrom = new MutableLiveData<>();
        }
        mLanguageFrom.setValue(item);
    }

    public MutableLiveData<HuDunLanguage> getLanguageTo() {
        if (mLanguageTo == null) {
            mLanguageTo = new MutableLiveData<>();
        }
        return mLanguageTo;
    }

    public void setLanguageTo(HuDunLanguage item) {
        if (mLanguageTo == null) {
            mLanguageTo = new MutableLiveData<>();
        }
        mLanguageTo.setValue(item);
    }
}
